const vscode = require('vscode');
const path = require("path");

module.exports = function (context) {

  let saySample = vscode.commands.registerCommand('sample.saySample', () => {
    vscode.window.showInformationMessage('This is a new sample command!');
  });
  context.subscriptions.push(saySample);

  let disposable = vscode.commands.registerCommand('sample.helloWorld', () => {
    vscode.window.showInformationMessage('Hello World from sample!');
  });
  context.subscriptions.push(disposable);

  context.subscriptions.push(vscode.commands.registerCommand('extension.demo.getCurrentFilePath', (uri) => {
    vscode.window.showInformationMessage(`当前文件(夹)路径是：${uri ? uri.path : '空'}`);
  }));



};